package main.alarms;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class AlarmsActivity extends Activity {
	TextView btnAddNewAlarm;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		btnAddNewAlarm = (TextView) this.findViewById(R.id.btnAddNewAlarm);
		btnAddNewAlarm.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Toast.makeText(AlarmsActivity.this, "sss", Toast.LENGTH_LONG);
				btnAddNewAlarm.setText("wokao");
				Intent i = new Intent(AlarmsActivity.this,
						NewAlarmsActivity.class);
				AlarmsActivity.this.startActivity(i);

			}
		});
	}
}